<script setup>
const props = defineProps({
  surveyData: {
    type: Object,
    default: () => ({})
  }
})
</script>

<template>
  <div class="w-full">
    <div class="flex justify-between  py-[10px] border-b-solid border-[#f4f4f4] items-center">
      <span>顶部图片</span>
      <image-upload :size="60" :is-show-tip="false" v-model="surveyData.topImg" :limit="1"/>
    </div>
    <div class="flex justify-between   py-[10px]  border-b-solid border-[#f4f4f4] items-center">
      <span>背景图片</span>
      <image-upload :size="60" :is-show-tip="false" v-model="surveyData.bgImg" :limit="1"/>
    </div>
    <div class="flex justify-between   leading-[30px] border-b-solid border-[#f4f4f4] items-center leading-[40px]">
      <span>背景颜色</span>
      <div>
        <span :style="{ color:surveyData.bgColor }">{{surveyData.bgColor}}</span>
        <el-color-picker size="small" v-model="surveyData.bgColor"></el-color-picker>
      </div>
    </div>
    <div class="flex justify-between  leading-[30px] border-b-solid border-[#f4f4f4] items-center leading-[40px]">
      <span>标题字体颜色</span>
      <div>
        <span :style="{ color:surveyData.nameColor }">{{surveyData.nameColor}}</span>
        <el-color-picker size="small" v-model="surveyData.nameColor"></el-color-picker>
      </div>
    </div>
    <div class="flex justify-between   leading-[30px] border-b-solid border-[#f4f4f4] items-center leading-[40px]">
      <span>描述字体颜色</span>
      <div>
        <span :style="{ color:surveyData.descColor }">{{surveyData.descColor}}</span>
        <el-color-picker size="small" v-model="surveyData.descColor"></el-color-picker>
      </div>
    </div>
    <div class="flex justify-between border-b-solid border-[#f4f4f4] items-center leading-[40px]">
      <span>显示问卷标题</span>
      <el-switch size="small" active-value="Y" inactive-value="N" v-model="surveyData.showTitle"></el-switch>
    </div>
    <div class="flex justify-between border-b-solid border-[#f4f4f4] items-center leading-[40px]">
      <span>显示问卷描述</span>
      <el-switch size="small" active-value="Y" inactive-value="N" v-model="surveyData.showDesc"></el-switch>
    </div>
    <div class="flex justify-between border-b-solid border-[#f4f4f4] items-center leading-[40px]">
      <span>显示题号</span>
      <el-switch size="small" active-value="Y" inactive-value="N" v-model="surveyData.showIndex"></el-switch>
    </div>
    <div class="flex justify-between border-b-solid border-[#f4f4f4] items-center leading-[40px]">
      <span>显示题目类型</span>
      <el-switch size="small" active-value="Y" inactive-value="N" v-model="surveyData.showType"></el-switch>
    </div>
    <div class="flex justify-between border-b-solid border-[#f4f4f4] items-center leading-[40px]">
      <span>显示分数</span>
      <el-switch size="small" active-value="Y" inactive-value="N" v-model="surveyData.showScore"></el-switch>
    </div>
  </div>
</template>

<style scoped lang="scss">
.flex-tabs{
  display: flex;
  flex-direction: column;
  height:100%;
  :deep(.el-tabs__content){
    flex:1;
    min-height: 0;
    box-sizing: border-box;
    overflow-y: scroll;
  }
}
</style>
